<?php
/*
*All rights reserved: Json.
*Links:http://www.liyaoquan.cn.
*Links:http://imarkchina.cn.
*Links:http://www.imarkchina.cn.
*/

/**
 * 博客后台首页控制器负责，业务流程判断
 * 后台所有操作都需要权限，必需继承 CommonAction 控制器
 */
Class IndexAction extends CommonAction{

	/**
	 * 博客后台首页
	 * @return [type] [description]
	 */
	Public function index(){
		$M = M('Public')->systemInfo();
		$config = M('Public')->blogConfig();
		$this->assign('version', C('version'));
		$this->assign('os', $M['os']);
		$this->assign('osrun', $M['osrun']);
		$this->assign('runweb', $M['apacheversion']);
		$this->assign('phpver', $M['phpversion']);
		$this->assign('phptime', $M['memorylimit']);
		$this->assign('up', $M['maxuploadfile']);
		$this->assign('time', $M['time']);
		$this->assign('phprun', $M['phprun']);
		$this->assign('hostip', $M['hostip']);
		$this->assign('cip', $M['cip']);
		$this->assign('hostname', $M['hostname']);
		$this->display();
	}
}